# Contributor: David Demelier <markand@malikania.fr>
# Maintainer: David Demelier <markand@malikania.fr>
pkgname=libretro-sameboy
pkgver=0_git20211220
pkgrel=0
_commit="b154b7d3d885a3cf31203f0b8f50d3b37c8b742b"
pkgdesc="Gameboy and Gameboy Color emulator for libretro"
url="https://github.com/libretro/SameBoy"
arch="all"
license="MIT"
source="$pkgname-$_commit.tar.gz::https://github.com/libretro/SameBoy/archive/$_commit.tar.gz"
builddir="$srcdir/SameBoy-$_commit"
options="!check" # No tests

build() {
	make -C libretro
}

package() {
	install -Dm644 libretro/sameboy_libretro.so "$pkgdir"/usr/lib/libretro/sameboy_libretro.so
}

sha512sums="
ac13113692ee7527faf7335e428c43ec81927b6e4340a8e383831d053c3018af2f594355ec306d8ce2744ea24d97073bc41aff657ba39302c8799f537e643948  libretro-sameboy-b154b7d3d885a3cf31203f0b8f50d3b37c8b742b.tar.gz
"
